﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sigavat.Entities;

namespace Sigavat.Repository.Mapping
{
    public class CentroComercialMap:EntityTypeConfiguration<CentroComercial>
    {
        public CentroComercialMap()
        {
            this.HasKey(p => p.Id);

            this.Property(p => p.Id)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);

            this.Property(p => p.NombreCentroC)
                .HasMaxLength(150);

            this.Property(p => p.Direccion)
                .HasMaxLength(250);

            this.Property(p => p.Comentario)
                .HasMaxLength(255);

            this.ToTable("CentroComercial");


        }
    }
}
